#include "MyJanusDemo.h"
#include "ui_MyJanusDemo.h"
#include "Signaling.h"
#include "RoomManager.h"

MyJanusDemo::MyJanusDemo(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::MyJanusDemo)
{
    ui->setupUi(this);
    m_pRoomManager = nullptr;
}

MyJanusDemo::~MyJanusDemo()
{
    delete ui;
}

void MyJanusDemo::init()
{
    m_pRoomManager = new RoomManager(this);
    m_pRoomManager->init();
}


void MyJanusDemo::on_connect_clicked()
{
    m_pRoomManager->connectToServer(ui->lineEdit->text());
}
